package com.space.entity;

/**
 * @author : 港某
 * @date : 2020/2/13 16:37
 */
public class Flight {
    private int flightId;
    private City flightStartArea;
    private City flightEndArea;
    private String flightStartTime;
    private String flightEndTime;
    private double flightPrice;
    private Status flightStatus;

    public Flight() {
    }

    public Flight(int flightId, City flightStartArea, City flightEndArea, String flightStartTime, String flightEndTime, double flightPrice, Status flightStatus) {
        this.flightId = flightId;
        this.flightStartArea = flightStartArea;
        this.flightEndArea = flightEndArea;
        this.flightStartTime = flightStartTime;
        this.flightEndTime = flightEndTime;
        this.flightPrice = flightPrice;
        this.flightStatus = flightStatus;
    }

    public int getFlightId() {
        return flightId;
    }

    public void setFlightId(int flightId) {
        this.flightId = flightId;
    }

    public City getFlightStartArea() {
        return flightStartArea;
    }

    public void setFlightStartArea(City flightStartArea) {
        this.flightStartArea = flightStartArea;
    }

    public City getFlightEndArea() {
        return flightEndArea;
    }

    public void setFlightEndArea(City flightEndArea) {
        this.flightEndArea = flightEndArea;
    }

    public String getFlightStartTime() {
        return flightStartTime;
    }

    public void setFlightStartTime(String flightStartTime) {
        this.flightStartTime = flightStartTime;
    }

    public String getFlightEndTime() {
        return flightEndTime;
    }

    public void setFlightEndTime(String flightEndTime) {
        this.flightEndTime = flightEndTime;
    }

    public Status getFlightStatus() {
        return flightStatus;
    }

    public void setFlightStatus(Status flightStatus) {
        this.flightStatus = flightStatus;
    }

    public double getFlightPrice() {
        return flightPrice;
    }

    public void setFlightPrice(double flightPrice) {
        this.flightPrice = flightPrice;
    }

    @Override
    public String toString() {
        return "Flight{" +
                "flightId=" + flightId +
                ", flightStartArea=" + flightStartArea +
                ", flightEndArea=" + flightEndArea +
                ", flightStartTime='" + flightStartTime + '\'' +
                ", flightEndTime='" + flightEndTime + '\'' +
                ", flightPrice=" + flightPrice +
                ", flightStatus=" + flightStatus +
                '}';
    }
}
